package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:char(32)"`
}

func (u *User) FindUser(account string) error {
	return DB.Debug().Where("account=?", account).Find(&u).Error
}
